package com.wnxy.carl.response;

import java.util.List;


public class EPage<T> {
    /**
     * 当前页码
     */
    private Long page;

    /**
     * 总页码
     */
    private Long pages;

    /**
     * 总条数
     */
    private Long pagesSize;

    private List<T> list;

    public EPage() {
    }

    public EPage(Long page, Long pages, Long pagesSize, List<T> list) {
        this.page = page;
        this.pages = pages;
        this.pagesSize = pagesSize;
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageDTO{" +
                "page=" + page +
                ", pages=" + pages +
                ", pagesSize=" + pagesSize +
                ", list=" + list +
                '}';
    }

    public Long getPage() {
        return page;
    }

    public void setPage(Long page) {
        this.page = page;
    }

    public Long getPages() {
        return pages;
    }

    public void setPages(Long pages) {
        this.pages = pages;
    }

    public Long getPagesSize() {
        return pagesSize;
    }

    public void setPagesSize(Long pagesSize) {
        this.pagesSize = pagesSize;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
